package com.deryun.tyl.dao.impl;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;

import com.deryun.tyl.bean.Standard;
import com.deryun.tyl.bean.Standard;
import com.deryun.tyl.bean.mapper.StandardMapper;

public class StandardDaoImpl extends SqlSessionDaoSupport {
	
	@Autowired
	private StandardMapper standardMapper;
	
	public int addStandard(Standard standard){
		return standardMapper.addStandard(standard);
	}
	
	public List<Standard> getAllStandard(){
		return standardMapper.getAllStandard();
	}
	
	public List<Standard> getUserStandard(String publishUserId){
		return standardMapper.getUserStandard(publishUserId);
	}
	
	public int deleteStandard(int id){
		return standardMapper.deleteStandard(id);
	}
	
	public List<Standard> getNewStandard(){
		return standardMapper.getNewStandard();
	}
	
	public int modifyStandard(Standard standard){
		return standardMapper.modifyStandard(standard);
	}
	
	public Standard getStandardById(int id){
		return standardMapper.getStandardById(id);
	}
	
	public int setResult(Standard standard){
		return standardMapper.setResult(standard);
	}
}
